package builder.demo1;

/**
 * 所有电脑产品的父类，只包含基本信息
 */
public class Computer {
    private String cpu; // cpu
    private String graphics; // 显卡
    private String power; // 电源
    private String mainBoard; // 主板
    private String monitor;// 显示器
    private String disk; // 磁盘

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getGraphics() {
        return graphics;
    }

    public void setGraphics(String graphics) {
        this.graphics = graphics;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getMainBoard() {
        return mainBoard;
    }

    public void setMainBoard(String mainBoard) {
        this.mainBoard = mainBoard;
    }

    public String getMonitor() {
        return monitor;
    }

    public void setMonitor(String monitor) {
        this.monitor = monitor;
    }

    public String getDisk() {
        return disk;
    }

    public void setDisk(String disk) {
        this.disk = disk;
    }

    public Computer(String cpu, String graphics, String power, String mainBoard, String monitor, String disk) {
        this.cpu = cpu;
        this.graphics = graphics;
        this.power = power;
        this.mainBoard = mainBoard;
        this.monitor = monitor;
        this.disk = disk;
    }

    public Computer() {
    }

    @Override
    public String toString() {
        return "Computer{" +
                "cpu='" + cpu + '\'' +
                ", graphics='" + graphics + '\'' +
                ", power='" + power + '\'' +
                ", mainBoard='" + mainBoard + '\'' +
                ", monitor='" + monitor + '\'' +
                ", disk='" + disk + '\'' +
                '}';
    }
}
